<?php

namespace app\common\validate;

use think\Validate;

class Wpcate extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'title' => 'require',
    ];
    
    /**
     * 提示消息
     */
    protected $message = [
        'title.require' => '标题不能为空',
        
    ];
    
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['title'],
        'edit' => ['title']
    ];
}